/*
 * @Author: your name
 * @Date: 2022-03-06 18:56:51
 * @LastEditTime: 2022-03-27 20:06:50
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \blog_web\src\api\blog.js
 */
import request from '@/request'

let { get: $get, post: $post } = request

// 请求文章的列表
export const getBlogList = (options) => $get('/blog/list', options)
// 发布博文
export const releaseBlog = (options) => $post('/blog/release', options)
// 删除博文
export const deleteBlog = (options) => $post('/blog/delete', options)
// 点赞文章
export const likeBlog = (options) => $post('/blog/like', options)
// 根据文章id获取文章的详情
export const getBlogDetail = (id) => $get('/blog/detail/', id)
